package com.ftg.learn.chapter01.entity;

/**
 * 也是一个类，我们用一下构造方法 注入
 *
 * @author kangjx
 * @createTime 2022/11/1
 */
public class Clazz {

    int cno;

    String cname;

    public Clazz(int cno, String cname) {
        this.cno = cno;
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "{cno: " + cno + ",cname:" + cname + "}";
    }
}
